<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="accountList.title"/></title>
    <meta name="heading" content="<fmt:message key='accountList.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editAccount"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="accountList" defaultsort="2" defaultorder="descending" class="table" requestURI="" id="accountList" export="true" pagesize="25">

    <display:column property="id" sortable="true" href="editAccount" media="html"
        paramId="id" paramProperty="id" titleKey="account.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="openDay" group="1" sortable="true" titleKey="account.openDay"/>
    <display:column property="staff.staffId" group="2" sortable="true" titleKey="staff.staffId"/>
    <display:column property="staff.name" sortable="true" titleKey="staff.name"/>
    <display:column property="transfer" group="3" sortable="true" titleKey="account.transfer"/>
    <display:column property="account" sortable="true" titleKey="account.account"/>
    <display:column property="name" sortable="true" titleKey="account.name"/>
	<display:column property="stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="stockShNumberB" sortable="true" titleKey="account.stockShNumberB"/>
	<display:column property="stockShOpenDayB" sortable="true" titleKey="account.stockShOpenDayB"/>
	<display:column property="stockSzNumber" sortable="true" titleKey="account.stockSzNumber"/>
	<display:column property="stockSzOpenDay" sortable="true" titleKey="account.stockSzOpenDay"/>
	<display:column property="stockSzNumberB" sortable="true" titleKey="account.stockSzNumberB"/>
	<display:column property="stockSzOpenDayB" sortable="true" titleKey="account.stockSzOpenDayB"/>
    <display:column property="subTime" sortable="true" titleKey="account.subTime"/>
    <display:column property="remark" sortable="true" titleKey="account.remark"/>
    <display:column property="lastModifyTime" sortable="true" titleKey="account.lastModifyTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountList.accounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountList.accounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="editAccount"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("accountList");
</script>